if (the textFont of cd fld "textFld" is "Futura") then
lock screen
set the textFont of cd fld "textFld" to Geneva
set the textSize of cd fld "textFld" to 12
unlock screen
else
lock screen
set the textFont of cd fld "textFld" to Futura
set the textSize of cd fld "textFld" to 14
set the textHeight of cd fld "textFld" to 15
unlock screen
end if
end mouseUp
-- part 21 (button)
-- low flags: 00
-- high flags: A005
-- rect: left=296 top=201 right=222 bottom=449
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Make the font bold
----- HyperTalk script -----
on mouseUp
if (the textStyle of cd fld "textFld" is "plain") then
set the textStyle of cd fld "textFld" to bold
else
set the textStyle of cd fld "textFld" to plain
end if
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=328 top=275 right=296 bottom=416
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Move Me
----- HyperTalk script -----
on mouseUp
put the loc of me into startLoc
put the loc of me into playLoc
repeat for 3
put random(512) into theH
put random(342) into theV
put theH into item 1 of playLoc
put theV into item 2 of playLoc
set the Loc of me to playLoc
wait 15
end repeat
set the loc of me to startLoc
end mouseUp
-- part contents for card part 2
----- text -----
Blaise Pascal
Cecelia James
David Paffner
Julia Greenwood
Kanae Ito
Martha Sorites
Rebecca Soldner
Washington Pulver
-- part contents for card part 14
----- text -----
Greenwood, Julia
Ito, Kanae
James, Cecelia
Paffner, David
Pascal, Blaise
Pulver, Washington
Soldner, Rebecca
Sorites, Martha
-- part contents for card part 18
----- text -----
Something happens when you click on a HyperCard button: you go to another card, or an animation starts, or... almost any action can be caused by clicking on a button. On this card are sample buttons to show you a few of the actions buttons can start.
(The buttons below also demonstrate all the styles that HyperCard buttons can have.)